package com.shuma.auth.model.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author lele
 */
@Data
@TableName("product_market")
public class ProductMarket implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 所需积分
     */
    private Integer integralAmount;

    /**
     * 所需金额
     */
    private Integer cashPrice;

    /**
     * 0,1,2分别对应纯积分，积分加钱和现金
     */
    private Integer purchaseType;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUserId;


}
